package study.spring.core.ioc._3_bean_assemble.singletonuseprototype;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * 演示 单例bean 的属性是 非单例bean 的问题
 */
@Component
@Scope("singleton")
public abstract class SingletonBeanForSpring {

  @Autowired
  public ErrorPrototypeBean errorPrototypeBean;

  @Lookup
  public abstract RightPrototypeBean getRightPrototypeBean();
}
